Filter hook 'edit_{$post_type}_per_page'

in WP Core File wp-admin/includes/post.php at line 1279

Description

Filters the number of items per page to show for a specific 'per_page' type. The dynamic portion of the hook name, `$post_type`, refers to the post type. Possible hook names include: - `edit_post_per_page` - `edit_page_per_page` - `edit_attachment_per_page`

Occurrences

Filename Line Number
wp-admin/includes/post.php 1279

Parameters

Type Name Description
int $posts_per_page Number of posts to display per page for the given post type. Default 20.

PHP Doc

/**
	 * Filters the number of items per page to show for a specific 'per_page' type.
	 *
	 * The dynamic portion of the hook name, `$post_type`, refers to the post type.
	 *
	 * Possible hook names include:
	 *
	 *  - `edit_post_per_page`
	 *  - `edit_page_per_page`
	 *  - `edit_attachment_per_page`
	 *
	 * @since 3.0.0
	 *
	 * @param int $posts_per_page Number of posts to display per page for the given post
	 *                            type. Default 20.
	 */